package org.penguin.study.bk.validator

import org.penguin.study.bk.annotation.Password
import javax.validation.ConstraintValidator
import javax.validation.ConstraintValidatorContext


class PasswordValidator : ConstraintValidator<Password?, String?> {
    override fun isValid(password: String?, context: ConstraintValidatorContext): Boolean {
        return password != null && !password.contains(" ")
    }
}